package com.simtop.hj.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

/**
 * 用户实体
 */
//属性为空或者NULL都不序列化
public class DownUser extends BaseRowModel {



    @ColumnWidth(value =30)
    @ExcelProperty(index = 0, value = "真实姓名")
    private String username;//用户名

    @ColumnWidth(value =30)
    @ExcelProperty(index = 1, value = "用户名")
    private String loginName;//登录名

    @ColumnWidth(value =30)
    @ExcelProperty(index = 2, value = "登陆密码需要为8位以上，由数字、字母、特殊符号组成")
    private String password;//登陆密码

    @ColumnWidth(value =30)
    @ExcelProperty(index = 3, value = "邮箱")
    private String email;//邮箱


    @ColumnWidth(value =30)
    @ExcelProperty(index = 4, value = "学校/单位")
    private String school;//学校

    @ExcelIgnore
    private String province;//省份

    @ExcelIgnore
    private String city;//城市

    @ColumnWidth(value =30)
    @ExcelProperty(index = 5, value = "班级")
    private String classes;//班级

    @ColumnWidth(value =30)
    @ExcelProperty(index = 6, value = "课程序号")
    private String subjects;//课程编号

    @ColumnWidth(value = 30)
    @ExcelProperty(index = 7,value = "上课年份")
    private String studyYear;

    @ColumnWidth(value = 30)
    @ExcelProperty(index = 8,value = "手机号")
    private String phone;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }


    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public String getSubjects() {
        return subjects;
    }

    public void setSubjects(String subjects) {
        this.subjects = subjects;
    }

    public String getStudyYear() {
        return studyYear;
    }

    public void setStudyYear(String studyYear) {
        this.studyYear = studyYear;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "DownUser{" +
                "username='" + username + '\'' +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", school='" + school + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", classes='" + classes + '\'' +
                ", subjects='" + subjects + '\'' +
                ", studyYear=" + studyYear +
                ", phone=" + phone +
                '}';
    }
}
